third-party-exp-api icon

third-party-exp-api

(0 reviews)

Gate To Pay - Cash Out

Description: This API is used to make cash withdrawal atm transaction.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
        "debitAccountNumber": "",
        "branchCode": "",
        "mobileNumber": "",
        "otp": "",
        "transactionSource": "",        //optional - default is 2
        "amount": "",
        "fees": "",
        "messageTransactionId": "",
        "atmId": "",
        "atmName": "",
        "atmLocation": ""
}

Content-type: application/json, text/json

Mulesoft Response:

Success Response: (201)

{
    "status": {
        "success": true,
        "code": "201",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "ftReference": "",
        "gateToPayReference": ""
    }
}

Error Response: (400, 403, 404, 405, 406, 415, 500, 501)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "لا يمكن اتمام العملية - حركة غير موجوده",
        "englishMessage": "Transaction Not Exist",
        "backendError": "Transaction Not Exist",
        "backendCode": "39"
    }
}

Reviews